import request from '@/static/js/popular.js'

/**
 * 工单升级
 */
export function workOrderUpgrade(params = {}) {
	return request.ajaxPost('/wechat/order/upgrade', params)
}

/**
 * 工单完成
 */
export function workOrderComplete({
	orderNum,
	faultType,
	faultRemark,
	makeWay,
	processEnclosure,
	realTime,
	actualRepairPlace,
	equipment,
	equipmentAddressId,
	equipmentAddress,
}={}){
	return request.ajaxPost('/wechat/order/new/complete', {
	orderNum,
	faultType,
	faultRemark,
	makeWay,
	processEnclosure,
	realTime,
	actualRepairPlace,
	equipment,
	equipmentAddressId,
	equipmentAddress,
})
}